package com.tool

import android.util.Log
import com.common.BuildConfig

/**
 * Created by mac on 2017/8/4.
 */
class KLog {
    companion object {
        fun i(tag: String?, message: String?) {
            if(BuildConfig.DEBUG) {
                Log.i(tag, message)
            }
        }

        fun e(tag: String?, message: String?) {
            if(BuildConfig.DEBUG) {
                Log.e(tag, message)
            }
        }

        fun d(tag: String?, message: String?) {
            if(BuildConfig.DEBUG) {
                Log.d(tag, message)
            }
        }
    }
}